package com.yonyougov.devops.cruxcisupport.server.dto;

import com.yonyougov.devops.cruxcisupport.server.ServerEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value = "执行cmd命令")
public class ExecuteCmdCommandRequestDto {
    @NotNull
    @ApiModelProperty(value = "serverId")
    private List<ServerEntity> serverList;

    @NotEmpty
    @ApiModelProperty(value = "cmd命令,多个使用分号分隔")
    private String cmd;

}
